﻿using System;
using System.Collections.Generic;
using BLL.Entities.Company;

namespace BLL.Entities.Client
{
  public class ClientInfo : BaseBusinessEntity
  {
    public Guid CompanyID { get; set; }
    public PersonInfo Person { get; set; }
    public DateTime Birthday { get; set; }
    public ContactInfo Contact { get; set; }
    public string Notes { get; set; }

    public DynamicEnumTypeValue Gender { get; set; }
    public DynamicEnumTypeValue SpokenLanguage { get; set; }
    public DynamicEnumTypeValue ContactMethod { get; set; }

    public DriversLicense License { get; set; }

    public CompanyOffice OriginalOffice { get; set; }

    public DateTime DateObtained { get; set; }
    public DynamicEnumTypeValue ObtainedFromSource { get; set; }

    public IList<ClientCase> Cases { get; set; }

    public ClientInfo()
    {
        Person = PersonInfo.CreateNewInstance<PersonInfo>();
        Contact = ContactInfo.CreateNewInstance<ContactInfo>();
        License = DriversLicense.CreateNewInstance<DriversLicense>();
        OriginalOffice = CompanyOffice.CreateNewInstance<CompanyOffice>();
        Cases = new List<ClientCase>();
    }
      
  }
}